package com.heyxampis.newmantis.controller.generico.service;

import java.io.Serializable;
import java.util.List;

import org.hibernate.Criteria;

import com.heyxampis.newmantis.model.Entidade;

public interface ServiceAbstrato<T extends Entidade, ID extends Serializable> {
	
	public T findPorId(ID id);
    public List<T> listar();
    public Long save(T entity);
    public boolean merge(T entity);
    public boolean update(T entity);
    public boolean saveOrUpdate(T entity);
    public boolean delete(T entity);
    public Criteria criarCriteria(T entity);

}
